{include file=member.header.html}
<div id="page-deposit-record" class="page-deposit-common clearfix">
	<div id="right" class="clearfix">
		<div class="wrap">
			<div class="public table deposit">
				<div class="record"> 
					<!--{if !$deposit_record}-->
					<div class="notice-word mt10">
						<p class="yellow">没有该条收支记录信息</p>
					</div>
					<!--{else}-->
					<div class="content">
						<div class="status-info clearfix">
							<h3>{$deposit_record.status_label}</h3>
							<div class="extra"></div>
						</div>
						<div class="trade-list clearfix">
							<ul class="ul-head clearfix">
								<li class="paytype">类型</li>
								<li class="name">名称</li>
								<li class="amount">金额</li>
							</ul>
							<ul class="clearfix">
								<li class="paytype">{if $deposit_record.flow eq 'income'}{$lang.income}{else}{$lang.outlay}{/if}</li>
								<li class="name">{$deposit_record.name}
									{if $deposit_record.remark}<span title="{$deposit_record.remark|escape}" class="gray">{$deposit_record.remark|escape|truncate:30}</span>{/if} </li>
								<li class="amount">
									<strong class="price f60">{$deposit_record.total}</strong>
									<!--{if $order}--><span class="gray ml10 fs12">({$order.shipping_name}:{$order.shipping_fee})</span><!--{/if}-->
								</li>
							</ul>
						</div>
						<!--{if $order}-->
						<div class="trade-goods mt10 clearfix">
							<div class="title pl10">{$order.store_name}</div>
							<!--{foreach from=$order.order_goods item=goods name=fe_goods}-->
							<div class="list">
								<ul class="ul-list clearfix">
									<li class="info clearfix">
										<div class="pic float-left"> <a href="{url app=goods&id=$goods.goods_id}" target="_blank"><img src="{$goods.goods_image}" width="40" height="40" /></a></div>
										<div class="desc float-left ml5"> <a href="{url app=goods&id=$goods.goods_id}" target="_blank" title="{$goods.goods_name|escape}">{$goods.goods_name|escape|truncate:26}</a>
											<p class="fs12 gray">{$goods.specification}&nbsp;</p>
										</div>
									</li>
									<li class="price">{$goods.price}</li>
									<li class="quantity gray">x{$goods.quantity}</li>
								</ul>
							</div>
							<!--{/foreach}-->
							<div class="trade-extra">
								<dl class="clearfix">
									<dt><span class="ml10">订单号</span></dt>
									<dd> {$deposit_record.order_sn} </dd>
								</dl>
								<dl class="clearfix">
									<dt><span class="ml10">状态</span></dt>
									<dd> 
										<!--{if !$goods.status && !$goods.refund_status}-->未确认收货 
										<!--{elseif $goods.status eq 'SUCCESS'}-->已确认收货 
										<!--{else}--> 
										<!--{if $goods.refund_status eq 'SUCCESS'}--> 
										<a href="{url app=refund&act=view&refund_id=$goods.refund_id}" target="_blank">退款成功</a> 
										<!--{elseif $goods.refund_status eq 'CLOSED'}--> 
										<a href="{url app=refund&act=view&refund_id=$goods.refund_id}" target="_blank">退款关闭</a> 
										<!--{else}--> 
										<a href="{url app=refund&act=view&refund_id=$goods.refund_id}"target="_blank">退款中</a> 
										<!--{/if}--> 
										<!--{/if}--> 
									</dd>
								</dl>
								<dl class="clearfix">
									<dt><span class="ml10">详情</span></dt>
									<dd> 
										<!--{if $deposit_record.purpose eq 'buygoods' || $deposit_record.purpose eq 'refund'}--> 
										<a class="view" href="{url app=buyer_order&act=view&order_id=$deposit_record.order_id}">{$lang.detail}</a> 
										<!--{else}--> 
										<a class="view" href="{url app=seller_order&act=view&order_id=$deposit_record.order_id}">{$lang.detail}</a> 
										<!--{/if}--> 
									</dd>
								</dl>
							</div>
						</div>
						<!--{/if}-->
						
						<div class="trade-slips mt10 clearfix">
							<dl class="dl-head clearfix">
								<dt><span class="ml10">对方</span></dt>
								<dd> <span class="ml10"></span> {if $deposit_record.account}
									{$deposit_record.account}
									{else}
									{$deposit_record.payway}
									{/if} </dd>
							</dl>
							<dl class="clearfix time">
								<dt><span class="ml10">时间</span></dt>
								<dd class="clearfix time-head">
									<div class="add-time">创建时间</div>
									<div class="pay-time">付款时间</div>
									<div class="end-time" style="border-bottom:0">结束时间</div>
								</dd>
								<dd class="clearfix">
									<div class="add-time">{$deposit_record.add_time|date:Y.m.d H:i:s}</div>
									<div class="pay-time">{$deposit_record.pay_time|date:Y.m.d H:i:s}</div>
									<div class="end-time" style="border-bottom:0">{$deposit_record.end_time|date:Y.m.d H:i:s}</div>
								</dd>
							</dl>
						</div>
					</div>
					<!--{/if}--> 
				</div>
			</div>
		</div>
	</div>
</div>
{include file=footer.html} 